﻿<link href="js/jquery/jquery_paginator/pagination.css" type="text/css"  rel="stylesheet" />
<script type="text/javascript" src="js/jquery/jquery_paginator/jquery.pagination.js"></script>
<script type="text/javascript">
            /** 
             * Initialisation function for pagination
             */
            function initPagination() {
                // count entries inside the hidden content
                var num_entries = <s:property value="pageInfo.count" />; // 总的记录数
                // Create content inside pagination element
                $("#Pagination").pagination(num_entries, {
                    callback: pageselectCallback,
                    prev_text:"上一页",
                    next_text:"下一页",
                    num_display_entries: 4,//连续分页主体部分显示的分页条目数.默认是11
                    num_edge_entries: 2,//两侧显示的首尾分页的条目数.默认是0
                    current_page:<s:property value="pageInfo.pageIndex" />,
                    items_per_page:<s:property value="pageInfo.pageSize" /> // 每页显示的记录数
                });
             }
            
            // When document is ready, initialize pagination
            $(document).ready(function(){      
                initPagination();
            });
</script>